//package com.origin.learn.flume.bean;
//
//import com.origin.learn.flume.service.Agent;
//import com.origin.learn.flume.service.impl.AbstractAgent;
//import com.origin.learn.flume.service.impl.ReflectAgentPropertiesGenerator;
//
//import java.util.Properties;
//
///**
// * @Description:
// * @Date: 2020/1/8
// * @Time: 10:05
// * @Created by:   dingtao
// * @Modified by:
// * @Modified at:
// */
//public class Test {
//    public static void main(String[] args) throws IllegalAccessException, NoSuchFieldException{
//        FlumeAgent flumeProperty = new FlumeAgent();
//
//        FlumeSource source = new FlumeNetCatSource()
//                .bind("localhost").port("44444").name("source1");
//
//        FlumeChannel channel = new FlumeMemoryChannel()
//
//                .capacity("1000").transactionCapacity("100").name("channel1");
//        FlumeSink sink = new FlumeLoggerSink()
//                .name("sink1");
//
//        source.setChannels(channel);
//        sink.setChannels(channel);
//
//        flumeProperty.agentName("agent1").setSources(source).setChannels(channel).setSinks(sink);
//
//        Agent agent = new ReflectAgentPropertiesGenerator().agent(flumeProperty);
//        Properties properties = agent.agentProperty();
//
//        int x =1;
//    }
//}
